<div class="widget-box">
  <div class="widget-title title-bar">
      <h3><span>为节点 {{current_organization.name}} 添加下级组织</span></h3>  
       <ul class="title-tag ul-inline">     
        <!-- <li>
          <a href="javascript:void(0)" ng-click="add_node_organization()">添加下级组织</a>
        </li> -->
      </ul>
    </div>
    <div class="widget-content">        
      <form role="form" class="form-horizontal" name="form"  ng-submit="update(organization)">
        <div class="control-group">
          <label class="control-label">上一节点</label>
          <div class="controls">
            <select ng-change="change()" ng-model="organization.parent_id" placeholder="必填项" required>
              <option ng-repeat="c in organizations" value="{{c.id}}">{{c.name}}</option>
            </select>
          </div>
        </div>
        <div class="control-group">
          <label class="control-label">名称</label>
          <div class="controls">
            <input type="text" ng-model='organization.name' placeholder="必填项" required />
          </div>
        </div>
        <div class="control-group">
          <label class="control-label">等级</label>
          <div class="controls">
            <select type="text" placeholder="必填项" ng-model="organization.rank.name" required>
              <option ng-repeat="c in ranks" value="{{c.name}}">{{c.name}}</option>
            </select>
          </div>
        </div>
        <div class="control-group">
          <label class="control-label">组织类型</label>
          <div class="controls">
            <select type="text" placeholder="必填项" ng-model="organization.category.name" required>
              <option ng-repeat="c in categories" value="{{c.name}}">{{c.name}}</option>
            </select>
            
          </div>
        </div>
      <div class="control-group">
        <label class="control-label">要求单位</label>
        <div class="controls">
          <!-- <select ui-select2="{width: 'resolve'}" multiple type="text" ng-model="organization.requre_certificate_organs">
            <option ng-repeat="c in require_certificate_organs" value="{{c.name}}">{{c.name}}</option>
          </select> -->

          <lable ng-repeat="x in require_certificate_organs">
            <input type="checkbox" style='width: auto;' checklist-model="organization.requre_certificate_organs"  checklist-value="x.name" > {{x.name}}
          </lable>
        </div>
      </div>

      <div class="form-actions">          
        <input type="submit" class="btn bg-green" value="保存" />     
        <input type="submit" class="btn btn-default" value="取消" />         
      </div>
    </form>
   </div>
</div>